<script type="text/javascript">
//<![CDATA[
function delete_go()
{
	if(confirm("해당 게시물을 삭제하시겠습니까?"))
	{
		$("form[name=delete_form]").submit();
	}
}

function go_list()
{
	document.location.href = "<?=$_SERVER['PHP_SELF']?>?mid=<?=$mid?>";
}
//]]>
</script>


<div class="lay_board">
	<h5 class="board_detail_title"><?=$current_record['eb_subject']?></h5>
	<ul class="board_detail">
		<li class="name"><strong>작성자</strong><span><?=$current_record['eb_name']?></span></li>
		<li class="hit"><strong>조회수</strong><span><?=number_format($current_record['eb_cnt'])?></span></li>
		<li class="date"><strong>등록일</strong><span><?=substr($current_record['eb_ctime'],0,10)?></span></li>
		<li class="hit"><strong>글번호</strong><span><?=$current_record['eb_seq']?></span></li>
		<li class="cont">


		<div id="lay_ucc_detail">
		<?php // 대표이미지 출력
			switch($movie_content['ezucc_selthumb'])
			{
				case 0:
					$thumb_path = $App->_url_agency_data.'/'.$movie_content['ezucc_path'].'/'.$movie_content['ezucc_thumbnail'];
					break;
				case 1:
					$thumb_path = $App->_url_agency_data.'/'.$movie_content['ezucc_path'].'/'.$movie_content['ezucc_thumbnail1'];
					break;
				case 2:
					$thumb_path = $App->_url_agency_data.'/'.$movie_content['ezucc_path'].'/'.$movie_content['ezucc_thumbnail2'];
					break;
				case 3:
					$thumb_path = $App->_url_agency_data.'/'.$movie_content['ezucc_path'].'/'.$movie_content['ezucc_thumbnail3'];
					break;
				case 4:
					$thumb_path = $App->_url_agency_data.'/'.$movie_content['ezucc_path'].'/'.$movie_content['ezucc_thumbnail4'];
					break;
				case 5:
					$thumb_path = $App->_url_agency_data.'/'.$movie_content['ezucc_path'].'/'.$movie_content['ezucc_thumbnail5'];
					break;
			}
		?>
		<object type="application/x-shockwave-flash" data="/ezbbs/ezplayer/ezPlayer.swf" width="500" height="400">
		<param name="movie" value="/agency/ezplayer/ezPlayer.swf" />
		<param name="wmode" value="opaque" />
		<param name="allowScriptAccess" value="always" />
		<param name="allowFullScreen" value="true" />
		<param name="quality" value="high" />
		<param name="SeamlessTabbing" value="true" />
		<param name="flashVars" value="flvfile=<?=$App->_url_agency_data.'/'.$movie_content['ezucc_path'].'/'.$movie_content['ezucc_name']?>&amp;fpWidth=500&amp;fpHeight=400&amp;mainImg=<?=$thumb_path?>" />
		<p>해당 컨텐츠를 보려면 <a href="http://www.adobe.com/kr/products/flashplayer/">Flash Player</a>가 필요합니다.</p>
		</object>
		</div>


			<?=str_replace(' ','&nbsp;',str_replace('<br />','<br/>',$current_record['eb_txt']))?>
		</li>
		<?php if (count($current_file_list)) { ?>
		<?php foreach ($current_file_list as $k => $v) { ?>
		<li class="file">
			<strong>첨부파일</strong>
			<span><a href="<?=$App->_url_board?>/index.php?job=download&amp;ebcf_id=<?=$ebcf_id?>&amp;eb_seq=<?=$v['ebfi_ebseq']?>&amp;ebfi_no=<?=$v['ebfi_no']?>" target="form_receiver"><?=$v['ebfi_pname']?></a> (download <?=number_format($v['ebfi_cnt'])?>, <?=$v['size']?>)</span>
		</li>
		<?php } ?>
		<?php } ?>

	</ul>
	<div class="board_detail_btn">
		<ul class="btn01">
			<li>
				<?php if ($User->is_site_admin()) { ?>
				<span><a href="<?=$_SERVER['PHP_SELF']?>?job=update&amp;<?=http_build_query($paras, '', '&amp;')?>&amp;eb_seq=<?=$eb_seq?>"><img src="/agency/images/board/modify_btn.gif" alt="수정하기" /></a></span>
				<span><a href="/" onclick="delete_go();return false;"><img src="/agency/images/board/delete_btn.gif" alt="삭제하기" /></a></span>
				<?php } ?>
				<span><a href="<?=$_SERVER['PHP_SELF']?>?job=list&amp;<?=http_build_query($paras, '', '&amp;')?>"><img src="/agency/images/board/list_btn.gif" alt="목록보기" /></a></span>
			</li>
		</ul>
	</div>
	<!-- <div class="board_pre"><strong>이전글</strong><span><a href="/">수출식품 영양 성분분석 검사 지원 계획</a></span></div>
	<div class="board_next"><strong>다음글</strong><span>다음글이 없습니다.</span></div> -->
</div>

<form name='delete_form' method='post' action="<?=$EzbbsManager->get_url_root()?>/index.php" target='form_receiver'>
<input type='hidden' name='job' value='delete' />
<input type='hidden' name='subjob' value='ok' />
<input type='hidden' name='eb_seq' value='<?=$eb_seq?>' />
<?php foreach ($paras as $k => $v) { ?><input type='hidden' name='<?=$k?>' value='<?=$v?>'><?php } ?>
</form>


